package com.example.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.example.pojo.measuringToolChecklistPojo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface measuringToolChecklistMapp {
    @DS("newMscLowCodeFormal")
    @Select("select * from ddm_measuring_tool_checklist where ${fieldName}>=#{minVal} and ${fieldName}<#{maxVal}")
    List<measuringToolChecklistPojo> queryOneField(String fieldName, LocalDateTime minVal, LocalDateTime maxVal);
}
